package com.jimmy.medical.repository;

import com.jimmy.medical.entity.Member;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface MemberRepository extends JpaSpecificationExecutor<Member>, PagingAndSortingRepository<Member, Long> {

    Member findFirstByMobileOrIdCard(String mobile, String idCardNo);

    Member findFirstByOpenid(String openId);
}
